package com.yuyou.fn.api;

import com.yuyou.fn.api.dto.OnlineTestDto;
import com.yuyou.fn.api.dto.OnlineTestResultDetailDto;
import com.yuyou.fn.api.dto.OnlineTestResultDto;

import java.util.Collection;

public interface OnlineTestService {

    /**
     * 测评列表
     * @param studentId
     * @return
     */
    Collection<OnlineTestDto> findOnlineTestOfStudent(Long studentId);

    /**
     * 开始做卷
     * @param onlineTestId
     * @return
     */
    OnlineTestResultDto beginTesting(Long onlineTestId );

    /**
     * 保存做题结果
     * @param onlineTestResultId
     * @param testDuration
     * @param answerDetail
     * @param isComplete
     */
    void saveTestResult(Long onlineTestResultId ,Integer testDuration , String  answerDetail ,Boolean isComplete );


    /**
     * 获取测试结果
     * @param onlineTestResultId
     * @return
     */
    OnlineTestResultDetailDto findOnlineTestResultDetail( Long onlineTestResultId );


}
